

public class Duck extends Animal implements ISwimRun{

    @Override
    public void eat() {
        System.out.println(name+"正在吃饭");
    }

    @Override
    public void run() {
        System.out.println(name+"正在跑步");
    }

    @Override
    public void swimming() {
        System.out.println(name+"正在游泳");
    }
}
